package com.weasing.res.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.weasing.res.dao.IWxUserlistDao;
import com.weasing.res.domain.WxUserlist;
import com.weasing.res.service.IWxUserlistService;
import com.weasing.res.service.base.impl.BaseServiceImpl;

@Service
@Transactional
public class WxUserlistServiceImpl extends BaseServiceImpl<WxUserlist>
		implements IWxUserlistService {
	@Autowired
	private IWxUserlistDao wxUserlistDao;

	@Override
	public void addWxUserlist(WxUserlist wxUserlist) {
		wxUserlistDao.save(wxUserlist);
	}

	@Override
	public List<WxUserlist> findWxUserlistByCondition(String truename,
			String idcardno) {
		List<WxUserlist> wxUserlist = wxUserlistDao.findWxUserlistByCondition(
				truename, idcardno);
		return wxUserlist;
	}

	@Override
	public void updateWxUserlist(WxUserlist wxUserlist) {
		wxUserlistDao.update(wxUserlist);
	}

	@Override
	public Integer ageCount(Integer begin, Integer end) {
		return wxUserlistDao.ageCount(begin, end);
	}

}
